package zuoye03;

public class Test {
    public static void main(String[] args) {
        Staff j=new Javalecturer();
        j.setName("老八");
        j.setGender("男");
        j.setAge(33);
        j.work();
        Staff u=new UIlecturer();
//        Painting u1=new UIlecturer();
//        u1.painting();
UIlecturer uIlecturer=(UIlecturer) u;
        u.setName("老六");
        u.setGender("女");
        u.setAge(27);
        u.work();
uIlecturer.painting();
    }
}
